﻿@model IEnumerable<SmallJob.Model.EmailFormat>
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@Html.ActionLink("Create", "Create")
<table>
    <thead>
        <tr>
            <td>Title</td>
            <td></td>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>@item.Title</td>
                <td>
                    @if (item.IsDeleted)
                    {
                        @Html.ActionLink("Recovery", "UnDel", new { id = item.ID })
                    }
                    else
                    {
                        @Html.ActionLink("Delete", "Delete", new { id = item.ID })
                    }
                    |
                    @Html.ActionLink("Edit", "Edit", new { id = item.ID })
                </td>
            </tr>
        }
    </tbody>
</table>
